MRJOSType
Converts a string, value, or byte array to a value of typeMRJOSType
.
public MRJOSType(String fromString); public MRJOSType(int fromInt); public MRJOSType(byte fromBytes[]);
fromString
- The string to convert to type
MRJOSType
. This string must be four characters in length. Since each character is represented by 2 bytes in the Unicode standard, this method uses only the low-order byte of each character infromString
.fromInt
- The integer value to convert to type
MRJOSType
.fromBytes
- The array of bytes to convert to type
MRJOSType
. The array must contain 4 bytes.DISCUSSION
This overloaded method defines a wrapper object that acts as the equivalent of a Mac OS 4-byte character constant (such as a creator, file type, or special folder name). When specifying a Mac OS creator, file type, or special folder name in the Java environment, you must refer to it using an MRJ OS type.SEE ALSO
The "Finder Interface" chapter in Inside Macintosh: Macintosh Toolbox Essentials for information about file types, creators, and folder names.